Chris Pollett > Old Classes >
CS174

( Print View )

Student Corner:
  [Grades Sec1]
  [Grades Sec2]

  [Submit Sec1]
  [Submit Sec2]

  [Class Sign Up Sec1]
  [Class Sign Up Sec2]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Hw6]

Practice Exams:
  [Mid1]  [Final]

                           












HW#1 --- last modified February 28 2019 22:28:17..

Solution set.

Due date: Sep 10

Files to be submitted:
  Hw1.zip

Purpose: To install Apache. To experiment with the HTTP protocol. To write our first XHTML 1.1 validating web page

Related Course Outcomes:

The main course outcomes covered by this assignment are:

The main course outcome covered by the coding part of this assignment is (1) [Write HTML documents containing standard HTML elements including forms, tables, client-side scripts, and server-side scripts.]

Specification:

All files that you make for Hw 1 should be zipped together into the file Hw1.zip and submitted.

The first thing I want you to do for this homework is to install Apache, PHP, and Mysql on your laptop and configure it so I can see each of these things is running. If you decide (as I suggest) to install Xampp to get this running, then I will test that your installation is working by going to the phpMyAdmin page. Demoing this to me either at the start of class or before I give out grades for this homework is worth 1/2 a point.

For the second part of this homework I want you to experiment with using HTTP. For this part of the assignment, I want you to put two files into Hw1.zip, experiment-transcript.txt and experiment-results.txt: the former has in your own words, in English a description of what you did, the latter has actual text-captures of your experiments. The first experiment I want you to try to do is to create a web page in your DocumentRoot and GET request it. Then I want you to try a HEAD request of the same document. Next try to request an image file. First, GET it with a header saying that you accept that kind of image, the second time without. In all cases, use HTTP/1.1 . See if you can request both the text file and the image without having to open a connection twice. You may edit the transcripts of your experiment to show only the first and last 200 bytes of the image transmission.

For the last part of the assignment I want you to write a validating XHTML 1.1 document, candidate.html. Pick your favourite cartoon character. candidate.html should be a web page encouraging people to vote for your cartoon character for President. Your page should have a reasonable <head> section with a title, as well as meta tags telling robots not to index your page or follow symlinks. A comparison of your candidate to others should be created using tables. Your candidate.php should constructively make use of images, links, <span> tags, and have a list on it. Be careful with image sizes, as you can only upload 2Mb. Also, please make your own images or one which can be argued are in the public domain rather than use copyrighted ones, but have fun and be creative!

To validate your page use the site: http://validator.w3.org/

Point Breakdown

Demo of running Apache with PHP on your laptop 1/2 pt
Experiment description and transcript files. (1pt per case, 1/2 pt bonus if do keep alive part) 4 pts
Page validates as XHTML 1.1 1/2pt
Page head has a title and meta tags as described above, tables are used to organise layout of page 1pt
Page constructively uses <img>, <link>, and <span> tags; page has a list on it. (1 point each) 4pts
Total10pts